package com.example.demo;

import com.example.demo.http.HttpResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/test")
public class GCTController {

    /**
     * 打开读卡器
     */
    @RequestMapping(value = "/testPost", method = RequestMethod.POST)
    public HttpResult testPost() {

        HttpResult result = new HttpResult(0,null,"post成功");

        System.out.println("!------ 测试post 成功 ------!");

        return result;
    }


    /**
     * 打开读卡器
     */
    @RequestMapping(value = "/testGet", method = RequestMethod.GET)
    public HttpResult testGet() {

        HttpResult result = new HttpResult(0,null,"get成功");

        System.out.println("!------ 测试get 成功 ------!");

        return result;
    }

}
